#ifndef LAURIN_UTILS_H_
#define LAURIN_UTILS_H_

#include <libnet.h>

//number of bytes on ethernet address
#ifndef ETH_ALEN
#define ETH_ALEN 6
#endif

//number of bytes on ip address
#ifndef IP_ALEN
#define IP_ALEN 4
#endif


static unsigned char eth_xmas[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
static unsigned char eth_null[ETH_ALEN] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

const char* getReadableIP(u_int32_t ip, bool resolve = false);
const char* getReadableMAC(u_int8_t mac[ETH_ALEN]);

bool areMACEquals(u_int8_t* op1, u_int8_t* op2);

#endif
